package com.star.truffle.shop;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class})
@EnableFeignClients(basePackages = {"com.star.truffle.shop.invoke"})
@EnableDiscoveryClient
@EnableCircuitBreaker
public class ShopApplication {

  public static void main(String[] args) {
    SpringApplication application = new SpringApplication(ShopApplication.class);
    application.run(args);
  }
}
